package main

import (
	"fmt"
)

func modifyUser(users map[string]map[string]string,name string){

	if users[name]!=nil{
		users[name]["pwd"]="6666"
	}else{
		users[name] = make(map[string]string)
		users[name]["pwd"]="888"
		users[name]["nick"]=name+"nick"
	}
}
func main(){


	users:=make(map[string]map[string]string)

	modifyUser(users,"tom")
	modifyUser(users,"jack")
	modifyUser(users,"tom")

	fmt.Println(users)
}